package com.suse.lhw.domin;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @ProjectName: health_manage_system
 * @Package: com.suse.lhw.domin
 * @ClassName: PHealthData
 * @Description: java类作用描述
 * @Author: 李鸿炜
 * @CreateDate: 2020/5/29 20:28
 * @UpdateUser: 更新者
 * @UpdateDate: 2020/5/29 20:28
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
@Data
public class PHealthData {
    private Integer id;

    /**
     * 身高
     */
    private Double length;

    /**
     * 最新体重
     */
    private Double newWeight;

    /**
     * 目标类型
     */
    private Integer target;

    /**
     * 开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date starttime;

    /**
     * 截止日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endtime;

    /**
     * 目标体重
     */
    private Double targetWeight;

    /**
     * 年龄
     */
    private Integer age;

    private String userid;
}